<?php
require '../GestionPermisos/config/conn.php';
   $vCOAC=$_POST["Txt_GA01COAC"];
   $vDEAC=$_POST["Txt_GA01DEAC"];
   $vMAAC=$_POST["Txt_GA01MAAC"];
   $vMOAC=$_POST["Txt_GA01MOAC"];
   $vSEAC=$_POST["Txt_GA01SEAC"];
   $vESAC=$_POST["Txt_GA01ESAC"];
   $vCOTP=$_POST["Txt_GA02COTP"];
   $vCOUB=$_POST["Txt_GA03COUB"];
   


 $SQLstr = "UPDATE ga01activo 
      SET GA01DEAC = '$vDEAC',
      GA01MAAC = '$vMAAC',
      GA01MOAC = '$vMOAC',
      GA01SEAC = '$vSEAC',
      GA01ESAC = '$vESAC',
      GA02COTP = '$vCOTP',
      GA03COUB = '$vCOUB'
      Where GA01COAC='$vCOAC';";


 if (!$conectarBD->query($SQLstr))
    {
         echo'<script language=javascript>
        // alert("No se a podido Actualizar los datos del responsable");
        // self.location="index.php"
      </script>';
    } else{
		echo'<script language=javascript>
        alert("Actualizado con exitos")
        self.location="index.php"
      </script>';
		}
		$conectarBD->close();

	
/* require 'index.php'; */

?>